﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
/// <summary>
/// Descripción breve de formato
/// </summary>
public class formato
{
	public formato()
	{
		
	}
    public void MessageBox(String msg, System.Web.UI.Control Page)
    {
        Label lbl = new Label();
        lbl.Text = "<script language='javascript'>" +
              Environment.NewLine + "window.alert('" + msg + "')</script>";
        Page.Controls.Add(lbl);
    }
    public void LimpiartextBoxes(Control parent)
    {
        foreach (Control c in parent.Controls)
        {
            if ((c.GetType() == typeof(TextBox)))
            {
                ((TextBox)(c)).Text = "";
            }
            if (c.HasControls())
            {
                LimpiartextBoxes(c);
            }
        }

}
}
